<?php

$ranges = array(788529152 => array(789577727, 'CA'), 789577728 => array(790102015, 'US'), 790626304 => array(791937023, 'CA'), 790102016 => array(792002559, 'CA'), 792002560 => array(792068095, 'US'), 792068096 => array(792199167, 'CA'), 792133632 => array(792330239, 'CA'), 792461312 => array(793247743, 'US'), 792330240 => array(793378815, 'US'), 793378816 => array(796917759, 'CA'), 793509888 => array(805306367, 'CA'));